package com.agrm.address.mapper;

import com.agrm.model.address.pojo.ChinaRegions;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface ChinaRegionsMapper extends BaseMapper<ChinaRegions> {
    default List<ChinaRegions> findAll(ChinaRegions category) {
        LambdaQueryWrapper<ChinaRegions> qw = Wrappers.lambdaQuery(category);
        return selectList(qw);
    }
}
